package com.atguigu.study.test;
class Car{
    Integer id;
    String carName;
}
public class ClassLoaderDemo1 {
    public static void main(String[] args) {
        Car car = new Car();
        Class<? extends Car> aClass = car.getClass();//由对象得到类模板
        ClassLoader classLoader = aClass.getClassLoader();//由类模板得到类加载器
        System.out.println(classLoader);//加载器为AppClassLoader
    }
}

